<!--[name]普通文章浏览模板[/name]-->
<extend name="base/common" />
<block name="body">
    <article class="article article-condensed">
        <header>
            <h1 class="text-center">{$article.title}</h1>
            <dl class="dl-inline">
                <if condition="$article['from']">
                <dt>来源：</dt>
                <dd>
                    <if condition="$article['fromurl']">
                    <a href="{$article.fromurl}" target="_blank">
                    </if>
                    {$article.from}
                    <if condition="isset($article['fromurl']) && $article['fromurl']"></a></if>
                </dd>
                <else>
                <if condition="isset($article['author']) && $article['author']">
                <dt>作者：</dt>
                <dd>{$article.author}</dd>
                </if>
                </if>
                <dt>最后修订：</dt>
                <dd>{$article.dateline|friendly_date}</dd>
                <dt></dt>
			</dl>
            <dl class="dl-inline pull-right">
                <dd>
                    <if condition="$article['tags']">
                    <volist name="article['tags']" id="v">
                        <a href="{:url('Misc/tag', array('tag'=>$v['tagname']))}" class="label label-info">{$v[tagname]}</a>
                    </volist>
                    </if>
                    <a href="{:url('Article/lists', array('catid'=>$cat['catid']))}" class="label label-success">{$cat.catname}</a> <span class="label label-danger"><i class="icon-eye-open"></i> {$article.viewnum|intval}</span>
                </dd>
            </dl>
            <section class="abstract">
            <p><strong>摘要：</strong>{$article.summary}</p>
        </section>
    </header>
    <section class="content">
        {$article.content}
    </section>
    <footer>
        <if condition="$prev || $next">
        <ul class="pager pager-justify">
            <if condition="$prev">
            <li class="previous"><a href="{:url('Article/view',array('aid'=>$prev['aid']))}"><i class="icon-arrow-left"></i> {$prev.title}</a></li>
            </if>
            <if condition="$next">
            <li class="next"><a href="{:url('Article/view',array('aid'=>$next['aid']))}">{$next.title} <i class="icon-arrow-right"></i></a></li>
            </if>
        </ul>
        </if>
        {:hook('documentDetailAfter', $article)}
    </footer>
</article>
</block>
